package com.pujiewang.gateway.util;


import org.springframework.util.CollectionUtils;
import org.springframework.util.ObjectUtils;

import java.util.Collection;


public class Assert {

    public static boolean notEmpty(Object object) {
        return !ObjectUtils.isEmpty(object);
    }

    public static boolean isEmpty(Object object) {
        return ObjectUtils.isEmpty(object);
    }

    public static boolean notEmptyCollection(Collection<?> collection)  {
        return !CollectionUtils.isEmpty(collection);
    }
    public static boolean isEmptyCollection(Collection<?> collection) {
        return !notEmptyCollection(collection);
    }
}
